package com.uenpay.oem.ui.withdraw;

import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;

import com.socks.library.KLog;
import com.uenpay.oem.R;
import com.uenpay.oem.common.RxBusEventConstant;
import com.uenpay.oem.ui.main.my.MyFragment;
import com.uenpay.oem.widget.dialog.UenChooseDialog;
import com.uenpay.util.app.base.BaseActivity;
import com.uenpay.util.rx.CommonEvent;
import com.uenpay.util.rx.RxBus;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * Created by PS on 2017/6/20.
 */

public class WithdrawsucceedActivity extends BaseActivity {
	@BindView(R.id.tv_maney)
	TextView tvManey;
	@BindView(R.id.tv_tank)
	TextView tvTank;
	@BindView(R.id.tv_poundage)
	TextView tvPoundage;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setTitle("提现成功");

		String withdrawmaney = getIntent().getStringExtra("withdrawmaney");
		String tank = getIntent().getStringExtra("tank");
		String poundagemaney = getIntent().getStringExtra("setpoundage");

		tvTank.setText(tank);
		tvManey.setText("¥"+Double.valueOf(withdrawmaney));
		int Poundage= (int) Math.round(Double.valueOf(withdrawmaney)*Double.valueOf(poundagemaney));
		tvPoundage.setText("¥"+Double.valueOf(Poundage)/100);

	}

	@Override
	public View bindView() {
		return null;
	}

	@Override
	public int bindLayout() {
		return R.layout.activity_withdrawsucceed;
	}

	@Override
	public void initView(View view) {

	}

	@OnClick(R.id.btn_succeed)
	public void onClick() {
		//Toast.makeText(getApplicationContext(), "完成", Toast.LENGTH_SHORT).show();

		finish();
	}
}
